package com.cs.contract.service.impl;

import com.cs.contract.service.CsPaymentService;
import com.cs.contract.domain.CsPayment;
import com.cs.contract.mapper.CsPaymentMapper;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author：zrx
 * @Package：com.cs.service.impl
 * @Project：RuoYi-Cloud
 * @name：CsPaymentServiceImpl
 * @Date：2024/11/18 19:33
 * @Filename：CsPaymentServiceImpl
 */
@Service
public class CsPaymentServiceImpl implements CsPaymentService {
    private final CsPaymentMapper csPaymentMapper;

    public CsPaymentServiceImpl(CsPaymentMapper csPaymentMapper) {
        this.csPaymentMapper = csPaymentMapper;
    }


    @Override
    public List<CsPayment> listCsPayment(CsPayment csPayment) {
        return csPaymentMapper.listCsPayment(csPayment);
    }

    @Override
    public Integer deleteCsPaymentByEid(Integer eid) {
        return csPaymentMapper.deleteCsPaymentByEid(eid);
    }

    @Override
    public Integer insertCsPayment(CsPayment csPayment) {
        return csPaymentMapper.insertCsPayment(csPayment);
    }
}
